// 用于帮助 webstrom 识别 @ 路径跳转，其实没有什么用，可以直接删除，修改也不会影响到项目
'use strict'
const path = require('path')
var webpack = require('webpack')

function resolve(dir) {
  return path.join(__dirname, ".", dir);
}


plugins: [
	new webpack.optimize.CommonsChunkPlugin('common.js'),
	new webpack.ProvidePlugin({
		jQuery: "jquery",
		$: "jquery"
	})
]


module.exports = {
  context: path.resolve(__dirname, "./"),
  resolve: {
    extensions: [".js", ".vue", ".json"],
    alias: {
      "@": resolve("src")
    },
	entry: {
		app: ["./node_modules/babel-polyfill/dist/polyfill.min.js","./src/main.js"]
	}
  }
};
